package com.youlai.boot.system.service;

import com.youlai.boot.system.model.entity.LpsOrderPj;
import com.youlai.boot.system.model.form.LpsOrderPjForm;
import com.youlai.boot.system.model.query.LpsOrderPjQuery;
import com.youlai.boot.system.model.vo.LpsOrderPjVO;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * 配件服务类
 *
 * @author lwb
 * @since 2025-07-14 16:22
 */
public interface LpsOrderPjService extends IService<LpsOrderPj> {

    /**
     *配件分页列表
     *
     * @return
     */
    IPage<LpsOrderPjVO> getLpsOrderPjPage(LpsOrderPjQuery queryParams);

    /**
     * 获取配件表单数据
     *
     * @param id 配件ID
     * @return
     */
     LpsOrderPjForm getLpsOrderPjFormData(Long id);

    /**
     * 新增配件
     *
     * @param formData 配件表单对象
     * @return
     */
    boolean saveLpsOrderPj(LpsOrderPjForm formData);

    /**
     * 修改配件
     *
     * @param id   配件ID
     * @param formData 配件表单对象
     * @return
     */
    boolean updateLpsOrderPj(Long id, LpsOrderPjForm formData);

    /**
     * 删除配件
     *
     * @param ids 配件ID，多个以英文逗号(,)分割
     * @return
     */
    boolean deleteLpsOrderPjs(String ids);

}
